home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / BvrsToRun.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  1010 b   |  38 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.IDAView;
  5.  
  6. public class BvrsToRun {
  7.    private IDAView _view;
  8.    private boolean _invalid = false;
  9.  
  10.    BvrsToRun(IDAView var1) {
  11.       this._view = var1;
  12.    }
  13.  
  14.    void invalidate() {
  15.       this._invalid = true;
  16.    }
  17.  
  18.    public int add(Behavior var1) {
  19.       try {
  20.          return this._invalid ? 0 : this._view.AddBvrToRun(var1.getCOMBvr());
  21.       } catch (ComFailException var4) {
  22.          throw StaticsBase.handleError(var4);
  23.       }
  24.    }
  25.  
  26.    IDAView getView() {
  27.       return this._view;
  28.    }
  29.  
  30.    public void remove(int var1) {
  31.       try {
  32.          this._view.RemoveRunningBvr(var1);
  33.       } catch (ComFailException var4) {
  34.          throw StaticsBase.handleError(var4);
  35.       }
  36.    }
  37. }
  38.